package com.centling.bluecollar.user.servise;

import java.util.Collection;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.AuthorityUtils;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;

import com.centling.bluecollar.user.entity.User;

public class UserServiceImpl implements  UserDetailsService{
public UserDetails loadUserByUsername(String username) {
	
	UserDetails details = null;
	
	User user = new User();
	user.setUserName("admin");
	user.setPasswordString("admin");
	
	details = new org.springframework.security.core.userdetails.User(user.getUserName(), user.getPasswordString(),AuthorityUtils.createAuthorityList("ROLE_USER"));					
	return details;

	}
}